import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    monitorId:null,//当前监控
    PopupData: null,//监控数据
    bujianList: null,
    // streetId:''//Id
  },
  mutations: {
    monitor(state, id){
      state.monitorId = id
    },
    popup(state, item){
      state.PopupData = item
    },
    bujian(state, data) {
      state.bujianList = data;
    }
  },
  actions: {
    getMonitor(con,id){
      con.commit('monitor',id)
    },
    getPopupData(con,item){
      con.commit('popup',item)
    },
    getbujianList(con, data) {
      con.commit('bujian', data)
    }
  },
  modules: {
    
  }
});
